import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { Table, Row, Col, Button } from 'antd';
import { hashHistory } from 'react-router';

import {
	
} from '../../action';

class RelationListSearch extends Component {
	constructor(props) {
		super(props);
		this.columns = [
			{ title: '姓名', dataIndex: 'name', key: 'name' },
			{ title: '性别', dataIndex: 'sex', key: 'sex' },
			{ title: '身份证号', dataIndex: 'id', key: 'id', className: 'center-col' }
		];
		this.state = {}
	}
	render() {
		const columns = this.columns;
		const dataSource = [{key: 1, name: '李XX', sex: '男',id: '111222199211010003'}];
		return (
			<div style={{margin: '0px 20px'}}>
				<div>边</div>
				<Row>
					<Table columns={columns} dataSource={dataSource} pagination={false}/>
				</Row>
			</div>
		)
	}
}

function mapState2Props(state) {
	let { graphData: {relationships, nodes} } = state;
	return { relationships, nodes };
}

RelationListSearch = connect(mapState2Props)(RelationListSearch);

export default RelationListSearch;
